package com.uzai.console.entity.es;

import com.uzai.common.utils.EsIndexName;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * 企业微信社群共享全网黑名单
 * 
 * @author lucher
 * @email sunlightcs@gmail.com
 * @date 2021-10-08 11:49:50
 */
@Document(indexName = EsIndexName.UZAI_WXQ_WORK_BLACKLIST_PUB, shards = 3, replicas = 2)
public class WxqWorkBlacklistPub implements Serializable {

	private static final long serialVersionUID = 3358130906600868939L;

	/**
	 * id为wxid
	 */
	@ApiModelProperty("主键ID：wxid")
	@Id
	@Field(type = FieldType.Keyword)
	private String id;

	/**
	 * 运营商ID(哪个运营商共享过来的)
	 */
	@Field(type = FieldType.Long)
	private Long merId;

	@ApiModelProperty("群微信id（从哪个群里共享过来的）")
	@Field(type = FieldType.Keyword)
	private String groupWxid;

	/**
	 * 用户wxid
	 */
	@Field(type = FieldType.Keyword)
	private String wxid;

	/**
	 * 用户昵称
	 */
	@Field(type = FieldType.Text)
	private String nick;

	/**
	 * 头像连接
	 */
	@Field(type = FieldType.Keyword)
	private String himg;

	/**
	 * 加黑原因
	 */
	@Field(type = FieldType.Text)
	private String remark;

	/**
	 * 黑名单类型(0打广告 1刷屏 2敏感词 3其他)
	 */
	@Field(type = FieldType.Integer)
	private Integer type;

	/**
	 * 数据来源(0运营商共享 1官方采集-免费  2收费名单)
	 */
	@Field(type = FieldType.Integer)
	private Integer source;

	/**
	 * 创建时间
	 */
	@Field(type = FieldType.Integer)
	private int createTime;

	/**
	 * 修改时间
	 */
	@Field(type = FieldType.Integer)
	private int updateTime;



	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getCreateTime() {
		return createTime;
	}

	public void setCreateTime(int createTime) {
		this.createTime = createTime;
	}

	public int getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(int updateTime) {
		this.updateTime = updateTime;
	}

	public Long getMerId() {
		return merId;
	}

	public void setMerId(Long merId) {
		this.merId = merId;
	}

	public String getWxid() {
		return wxid;
	}

	public void setWxid(String wxid) {
		this.wxid = wxid;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getHimg() {
		return himg;
	}

	public void setHimg(String himg) {
		this.himg = himg;
	}

	public String getGroupWxid() {
		return groupWxid;
	}

	public void setGroupWxid(String groupWxid) {
		this.groupWxid = groupWxid;
	}
}
